/**
 * Created by Administrator on 2017/10/10.
 */
/**
 * Created by Administrator on 2017/10/10.
 */
angular.module('module.set')
    .controller('VersionController', VersionController);
VersionController.$inject = ['$state', '$localStorage'];
function VersionController($state, $localStorage) {

    var vm = this;
    vm.openModelVersion = openModelVersion;

    if (!$localStorage[environmental + "shopid"]) {
        $localStorage.$reset();
        $state.go('login');
    }

    var shopid = $localStorage[environmental + "shopid"];

    function openModelVersion() {
        $("#versionModal").modal('show');
    }
}